//
//  DiscoverView.swift
//  倔强的大轮胎
//
//  Created by Eiji on 17/3/23.
//  Copyright © 2017年 张迎港. All rights reserved.
//

import UIKit

class DiscoverView: UIView {

    
    override init(frame: CGRect) {
        
        let titlebut = UIButton(frame: CGRect(x: (UIScreen.main.bounds.size.width-30)/2-30, y: 5, width: 20, height: 20))
        titlebut.setImage(#imageLiteral(resourceName: "wxb定位"), for: UIControlState(rawValue: 0))
        
            
       
        
        
        super.init(frame: CGRect(x: 0, y: 30, width:UIScreen.main.bounds.size.width , height: 30))
        
        
        self.addSubview(titlebut)
        
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */

}
